package lang;

public class EnumEx {
	public static void main(String[] args) {
		RoleType type = RoleType.ADMIN;
		System.out.println("type:" + type);
		System.out.println(type == RoleType.ADMIN);
		type = RoleType.HR;
		System.out.println(type == RoleType.ADMIN);
		
		RoleType.valueOf("ADMIN111");
	}
	
	private static boolean isAdmin(RoleType type) {
		return type == RoleType.ADMIN;
	}
}


enum RoleType {
	ADMIN, USER, HR;
}